import { RouteRecordRaw } from "vue-router";

// 帐号管理模块
const tableRouter: Array<RouteRecordRaw> = [
  {
    path: "/cpymsg",
    component: () => import("@/layouts/index.vue"),
    redirect: "/cpymsg/msg",
    meta: {
      icon: "MessageBox",
      title: "消息中心"
    },
    children: [
      // {
      //   path: "/cpymsg/msg",
      //   name: "cpymsgMsg",
      //   component: () => import("@/views/im/index.vue"),
      //   meta: {
      //     icon: "menu",
      //     title: "消息管理",
      //     keepAlive: true,
      //     requiresAuth: true,
      //     key: "cpymsgMsg"
      //   },
      //   children: []
      // },
      {
        path: "/cpymsg/iframe",
        name: "imIframe",
        component: () => import("@/views/cpymsg/iframe/index.vue"),
        meta: {
          icon: "menu",
          title: "消息管理",
          keepAlive: true,
          requiresAuth: true,
          key: "cpymsgMsg"
        },
        children: []
      },
      {
        path: "/cpymsg/iv",
        name: "cpymsgIv",
        component: () => import("@/views/cpymsg/iv/index.vue"),
        meta: {
          icon: "menu",
          title: "面试消息",
          keepAlive: true,
          requiresAuth: true,
          key: "cpymsgIv"
        },
        children: []
      },
      {
        path: "/cpymsg/sys",
        name: "cpymsgSys",
        component: () => import("@/views/cpymsg/sys/index.vue"),
        meta: {
          icon: "menu",
          title: "系统消息",
          keepAlive: true,
          requiresAuth: true,
          key: "cpymsgSys"
        },
        children: []
      },
      {
        path: "/cpymsg/report",
        name: "cpymsgReport",
        component: () => import("@/views/cpymsg/report/index.vue"),
        meta: {
          icon: "menu",
          title: "我的投诉",
          keepAlive: true,
          requiresAuth: true,
          key: "cpymsgReport"
        },
        children: []
      }
    ]
  }
];

export default tableRouter;
